package com.sxkf.template.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 用户地址表
 */
@ApiModel(description = "用户地址表")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "t_address")
public class Address {
    /**
     * 地址表PK
     */
    @TableId(value = "id")
    @ApiModelProperty(value = "地址表PK")
    private String id;

    /**
     * 用户ID
     */
    @TableField(value = "user_id")
    @ApiModelProperty(value = "用户ID")
    private String userId;

    /**
     * 收货人姓名
     */
    @TableField(value = "rec_name")
    @ApiModelProperty(value = "收货人姓名")
    private String recName;

    /**
     * 手机号
     */
    @TableField(value = "rec_mobile")
    @ApiModelProperty(value = "手机号")
    private String recMobile;

    /**
     * 地址状态(0=普通地址, 1=默认地址)
     */
    @TableField(value = "address_status")
    @ApiModelProperty(value = "地址状态(0=普通地址, 1=默认地址)")
    private String addressStatus;

    /**
     * 地址省市区
     */
    @TableField(value = "address")
    @ApiModelProperty(value = "地址省市区")
    private String address;

    /**
     * 详细地址
     */
    @TableField(value = "address_details")
    @ApiModelProperty(value = "详细地址")
    private String addressDetails;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;
}
